import java.awt.Image;

import javax.swing.ImageIcon;

public class Creature {

	protected int x, y, xSpeed, ySpeed, speed;
	protected Image sprite;
	protected boolean isSolid;

	public Creature(int x, int y, String spritePath) {
		xSpeed = 0;
		ySpeed = 0;
		this.x = x;
		this.y = y;

		setSprite(spritePath);
	}

	public void move() {
		x += xSpeed;
		y += ySpeed;
	}

	public void setSprite(String spritePath) {
		ImageIcon ii = new ImageIcon(this.getClass().getResource(spritePath));
		sprite = ii.getImage();
	}
}